<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@ include file="/v1/pages/public/head.jsp"%>
<body>
<%@ include file="/v1/pages/public/head_menu.jsp"%>
<input type="hidden"  value="${param.order}" id="pay_orderId"/>
<input type="hidden"  value="${param.totalMoney}" id="pay_totalMoney"/>
<div class=" ldh-mainCenter">
	<div class="cont_1240">
    	<div class="ldh-pay">
        	<div class="ldh-pay-title"><span class="ldh-paytitle-name">云便利商店支付</span><span>订单号：${param.order}</span></div>
            <div class="ldh-pay-money"><span>应付总额：</span><span class="color-main" id="payAmount">${param.totalMoney}</span></div>
            <div class="ldh-yuepay" id="ldh-yuepay" style="display:none;">
            <span class="ldh-checkbox-span" onclick="$ldh_pay.setBalancePay(this)"><input type="checkbox"  class="opacity_0" /></span>
            <span class="ldh-yezf">余额支付</span><span  id="span_balance_pay" style="display:none;"><input id="input_balance" class="input-yuepay" type="text" oninput="$ldh_pay.OnInput(event)" onpropertychange="$ldh_pay.OnPropChanged(event)" />元</span>
            <span class="ldh-ye" style="margin-left:30px;">可支付余额：<i class="color-main" id="balance">0</i>元</span></div>
            <div class="ldh-redpackets clearfix" id="ldh-redpackets" style="display:none;">
                <div class="fl-left">
                <span class="ldh-checkbox-span" onclick="$ldh_pay.setRedPackets(this)"><input class="opacity_0" type="checkbox"></span>                                    
                <span class="ldh-redpackets-used">使用红包</span>
                </div>
                <div class="btn-group fl-left" id="div_redpackage" style="display:none;">
                      <button data-toggle="dropdown" class="btn dropdown-toggle"><span id="text_red_packages_balance">请选择</span>&nbsp;&nbsp;<span class="caret"></span></button>
                      <ul class="dropdown-menu" id="couponsList">
                        
                      </ul>
                 </div>
            </div>
            <div class="ldh-pay-way" id="span_online_pay">
            	<ul>
                	<li>
                    	<input type="radio"  checked="checked" name="the_payment" value="05"/><span class="click_span"><img src="${ctx}/v1/img/unionpay_1301.png"/></span>
                    	<input type="radio"  name="the_payment" value="07"/><span class="click_span"><img src="${ctx}/v1/img/alipay.png" width="110" height="32" /></span>
                    	<span class="color-main fl-right ldh-needpay">支付：<b id="online_pay_amount">${param.totalMoney}</b>元</span>
                    </li>
                </ul>
            </div>
            <div class="ldh-pay-pwd" style="display:none;">支付密码：<input type="password" class="pay-pwd" id="input_pay_password"><span id="tip_input_pay_password" style="margin-left:30px;" class="color-main"></span></div>
            <div style="margin-top:15px;" id="tip_pay" class="color-main"></div>
            <div class="ldh-pay-btn"><button type="button" id="gotoPayBtn" class="btn-green" onclick="$ldh_pay.gotoPay()">去支付</button></div>
        </div>
    </div>
</div>

<div class="ldh-popup-bg">
	<div class="ldh-popup clearfix">
    	<div class="ldh-popup-title"><h3>登录网上银行付款</h3></div>
        <div class="ldh-popup-cont">
        	<p>请在新打开的网银页面操作完成后选择：</p>
        	<!-- javascript:$ldh_user.getOrderDetail("201505060953384910") -->
        	<p><span>支付成功：</span><button type="button" class="btn-green" onclick="$ldh_pay.gotoOrderDetail('${param.order}')">查看订单</button></p>
            <p><span>支付失败：</span><button type="button" class="btn-main" onclick="window.location.reload()">重新付款</button></p>
        </div>
        <!-- <div class="ldh-popup-close" onClick="$ldh_pay.popupHide()"></div> -->
    </div>
</div>

<script type="text/javascript">
seajs.use([ctx+'/v1/js/custom/order/module-pay.js'],function(m){
	m.init(m);	
});


</script>
<%@ include file="/v1/pages/public/foot.jsp"%>